.scroll-y {
  height: 100vh;
  background-color: #efefef;
}

view {
  height: 400rpx;
  display: flex;
  align-items: center;
  justify-content: center;
}

view:nth-child(odd) {
  background-color: skyblue;
}

view:nth-child(even) {
  background-color: lightsalmon;
}